package com.cloud.bssp.gateway.feign;

import com.cloud.bssp.gateway.dto.UserDTO;
import com.cloud.bssp.gateway.util.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Description: 用户表
 * Create Date: 2021-03-17T13:53:59.025
 * Modified By：<br>
 * Modified Date：<br>
 * Why & What is modified：<br>
 *
 * @author weirx
 * @version 1.0
 */
@FeignClient(name = "bssp-user-service", path = "/user",fallbackFactory = UserClientImpl.class)
public interface UserClient {

    @PostMapping("/login")
    R login(@RequestBody UserDTO userDTO);
}